<?php

namespace app\admin\model\shopro\user;

use app\admin\model\shopro\Common;

class Bonus extends Common
{
    protected $name = 'shopro_user_bonus';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;

    /*protected $append = [
        'ext' => 'json',
    ];*/

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }
}
